package com.ruoyi.cems.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel(description = "用户消息")
public class BmsUserMessage extends BmsBaseEntity{

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("用户ID")
    private String userId;

    @ApiModelProperty("消息类型:  1-变量控制表   2-应急通知")
    private Integer type;

    @ApiModelProperty("变量控制表ID")
    private String vcId;

    @ApiModelProperty("应急消息ID")
    private String enId;

    @ApiModelProperty("消息内容")
    private String message;

    @ApiModelProperty("跳转地址")
    private String url;

    @ApiModelProperty("是否已读")
    private Integer check;

    @ApiModelProperty("读取时间")
    private Date checkTime;

    @ApiModelProperty("状态")
    private Integer status;


    @Override
    public String toString() {
        return "BmsUserMessage{" +
                ", userId=" + userId + '\'' +
                ", type=" + type +
                ", vcId='" + vcId + '\'' +
               ", enId='" + enId + '\'' +
                ", message='" + message + '\'' +
                ", url='" + url + '\'' +
                ", check=" + check +
                ", checkTime=" + checkTime +
                ", status=" + status +
                '}';
    }



}
